package com.ywqf_api.dao;

import com.ywqf_api.dto.in.MaintenanceDto;
import com.ywqf_api.entity.Customer;
import com.ywqf_api.entity.MainStaff;
import com.ywqf_api.entity.Maintenance;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2018/4/3 0003.
 */
public interface MaintenanceDao {

    int findMaintenance(@Param("houseId") Integer houseId,@Param("customerId")Integer customerId);

    Customer findCustomer(@Param("customerId")Integer customerId);

    int saveMaintenance(MaintenanceDto maintenanceDto);

    int saveUrl(@Param("url")String url,@Param("maintenanceId")Integer maintenanceId);

    List<Maintenance> findMainDetail(@Param("houseId")Integer houseId);

    Maintenance findDetail(@Param("maintenanceId")Integer maintenanceId);

    MainStaff findStaffId(@Param("maintenanceId")Integer maintenanceId);

    Maintenance findStaffDetail(@Param("staffId")Integer staffId);

    List<Maintenance> findUrl(@Param("maintenanceId")Integer maintenanceId);
}
